Skip to main content

Minimum guaranteed hours

Rounds the calculated hours for a segment up to a guaranteed minimum; for example, a worker gets called in after hours for a maintenance item, then goes home after 1 hour, but is guaranteed a minimum of 4hours pay. Hours are not restricted if they go past the specified minimum.

Details

Rule Type
Time

Execution
After shift

Parameters

NameDataTypeDefaultValueDescription
SwitchstringThe field which enables this rule. Punches for the current day will be searched for this value as the trigger that the rule should be applied (e.g. "Call-IN")
GuaranteedHoursfloatThe number of hours to guarantee if the actual worked hours are less. If the actual worked hours are more, the employee receives the higher worked amount.
HourTypelookupChoose the earnings code to use for the offsetting entry. For example, if the actual worked hours are 1.50, and the guaranteed minimum is 4.0, then 2.5 hours will be generated against this earnings code

Decision Tree

Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.

Line#Level1Level2Level3Comment
1Start
2IF(PUNCH(PayDate, Any, Switch) != 1) Do we have the switch enabled that triggers a minimum guaranteed hours? Get this from the first IN of the day
3DONE
4IF(CALC(hours_worked.day) >= GuaranteedHours) Are the worked hours greater than the minimum guaranteed?
5DONE
6SET(makeup = SUBTRACT(GuaranteedHours, CALC(hours_worked.day)))Calculate the difference to makeup the minimum
7SET( = INSERT_PUNCH(PayDate, HourType, makeup, GH))Insert a makeup punch for the extra hours using the specified earnings code
8DONE